package com.sykuku.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sykuku.dto.DishDto;
import com.sykuku.pojo.Dish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface DishMapper extends BaseMapper<Dish> {

   public Page<DishDto> dishPage(Page<DishDto> page,@Param("name") String name);

   //单传输page对象的话 xml写查询所有自动返回page<泛型> mp会帮你分好页   单标一般直接调用mp自带的方法查询就行
}
